package com.sikaryofficial.backend.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sikaryofficial.backend.domain.dto.resp.points.PointsRuleDTO;
import com.sikaryofficial.backend.domain.entity.PointsRule;
import com.sikaryofficial.backend.mapper.PointsRuleMapper;
import com.sikaryofficial.backend.service.IPointsRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 积分规则Service业务层处理
 * 
 * @author qinjinyuan
 * @date 2024-07-10
 */
@Service
public class PointsRuleServiceImpl extends ServiceImpl<PointsRuleMapper, PointsRule>  implements IPointsRuleService {
    @Autowired
    private PointsRuleMapper pointsRuleMapper;

    @Override
    public List<PointsRuleDTO> selectRules() {
        return pointsRuleMapper.selectRules();
    }
}
